import numpy as np
import matplotlib.pyplot as plt

v = 14
theta = np.pi/4
g = 9.8

vx = v*np.cos(theta)
vy = v*np.sin(theta)

t = 2 * vy/g
nt = np.linspace(0, t, 10)
nx = vx*nt
ny = abs((vy-g*nt)**2 - vy**2) / (2*g)

plt.plot(nx, ny)
plt.show()


